Release 10.1A: OpenEdge Development:
Messaging and ESB
Sending messages to a queue
In the PTP domain, applications send messages to a queue. To send a message to a queue with Java–JMS, an application obtains a handle to a queue object, creates a Queue Sender object, and uses the queue sender to send messages. Sending a message to a queue with the 4GL-JMS API involves these general steps:
- The application calls the sendToQueue procedure in the
ptpsession.porjmssession.pobject.- The application specifies the queue name as an
INPUTparameter of typeCHARACTER.The application can set other sending parameters (such as
persistency,timeToLive, andpriority) in the Session object as a default for all the messages it sends, or it can set these parameters at each sendToQueue procedure call.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |